package com.shell.provider;

import com.shell.governor.security.user.service.SmsCheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SmsCodeProvider {
	@Autowired
	private SmsCheckService smsCheckService;

	@RequestMapping({ "/smsCode/getSmsCodeForLogin" })
	public Object getSmsCodeForLogin(@RequestParam("phoneNo") String phoneNo) {
		return this.smsCheckService.getSmsCodeForLogin(phoneNo);
	}
}
